<#-- @ftlvariable name="entity" type="com.xci.edu.core.entity.EduCategory" -->
<#include "/sys/_layout.ftl">
<!doctype html>
<html>
<head>
    <@pageHeader/>
</head>
<body>
<@pageLoading/>
<div class="jxpanel winpanel" data-fit="true">
    <form id="editform" class="jxform" method="post"
          action="${saveUrl("/background/eduCategory/","createSave","updateSave")}">
        <input name="id" value="${entity.id}" type="hidden">
        <input name="status" value="${entity.status}" type="hidden">
        <@isEdit><input name="name" value="${entity.name}" type="hidden"></@isEdit>
        <table class="table jxtable-form">
            <tr>
                <th class="w-200px">科目名称</th>
                <td>
                    <input class="form-control" id="name" name="name" value="${entity.name}" maxlength="50" data-validate="required: [true,'请输入科目名称']" <@isEdit>disabled="disabled"</@isEdit> autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>培训总学时(秒)</th>
                <td>
                    <input class="form-control jxnumber" id="totalPeriod" name="totalPeriod" type="number" maxlength="9"
                           data-validate="required: [true,'培训总学时']"
                           max="999999999" data-max="999999999" data-min="0"
                           data-decimals="0" data-step="1" value="${entity.totalPeriod}" autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>每日最大培训学时(秒)</th>
                <td>
                    <input class="form-control jxnumber" id="dayMaxPeriod" name="dayMaxPeriod" type="number" maxlength="9"
                           data-validate="required: [true,'每日最大培训学时']"
                           max="999999999" data-max="999999999" data-min="0"
                           data-decimals="0" data-step="1" value="${entity.dayMaxPeriod}" autocomplete="off"/>
                   </td>
            </tr>
            <tr>
                <th>验证问题允许尝试最大次数</th>
                <td>
                    <input class="form-control jxnumber" id="validateTryTime" name="validateTryTime" type="number" maxlength="9"
                           data-validate="required: [true,'验证问题允许尝试最大次数']"
                           max="999999999" data-max="999999999" data-min="0"
                           data-decimals="0" data-step="1" value="${entity.validateTryTime}" autocomplete="off"/>
                 </td>
            </tr>
            <tr>
                <th>验证问题回答超时时间(秒)</th>
                <td>
                    <input class="form-control jxnumber" id="validateTimeout" name="validateTimeout" type="number" maxlength="9"
                           data-validate="required: [true,'验证问题回答超时时间']"
                           max="999999999" data-max="999999999" data-min="0"
                           data-decimals="0" data-step="1" value="${entity.validateTimeout}" autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>验证问题随机弹出时间范围,格式:开始秒杀-结束秒数,如:900-1200</th>
                <td>
                    <input class="form-control" id="validateRandomRange" name="validateRandomRange" value="${entity.validateRandomRange}" maxlength="50" data-validate="required: [true,'请输入验证问题随机弹出时间范围,格式:开始秒杀-结束秒数,如:900-1200']" autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>备注</th>
                <td>
                    <textarea class="form-control" name="remark" maxlength="500" rows="3" style="resize: none">${entity.remark}</textarea>
                </td>
            </tr>
        </table>
    </form>
    <div class="panel-footer text-right">
        <@editFormDialogCommand/>
    </div>
</div>
<@editFormPageFooter/>
</body>
</html>
